package cn.edu.jxau.core.web;

import java.io.InputStream;

/**
 * Desc:文件域参数
 * ------------------------------------
 * Author:fulei04@meituan.com
 * Date:2017/12/24
 * Time:上午9:28
 */
public class FileFieldParam {

    private String fieldName;
    private String fileName;
    private long fileSize;
    private String contentType;
    private InputStream input;

    public FileFieldParam(String fieldName, String fileName, long fileSize, String contentType, InputStream input) {

        this.fieldName = fieldName;
        this.fileName = fileName;
        this.fileSize = fileSize;
        this.contentType = contentType;
        this.input = input;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public InputStream getInput() {
        return input;
    }

    public void setInput(InputStream input) {
        this.input = input;
    }

    @Override
    public String toString() {
        return "FileFieldParam{" +
                "fieldName='" + fieldName + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                ", contentType='" + contentType + '\'' +
                ", input=" + input +
                '}';
    }
}
